﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace mmoss.application.classes
{
    public static class windowFunctions
    {
        public static frmDockPatients GetPatientDock(Form l_mdiParent)
        {
            foreach(Form l_child in l_mdiParent.MdiChildren)
            {
                //loop the children and return the right one 
                if (l_child.Name=="frmDockPatients")
                {
                    return (frmDockPatients)l_child;
                }
            }
            return null;
        }
        public static void refreshPatientWindow(Form l_mdiParent)
        {
            if (GetPatientDock(l_mdiParent) != null)
            {
                //refresh the patients                
            }
        }

    }
}
